package com.wms.modules.controller;

import com.ruoyi.common.core.domain.RR;
import com.ruoyi.common.core.web.controller.AbstractController;
import com.wms.modules.service.WarehouseAreaMgmtService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author: Z
 * @Date: 2024/6/23 16:04
 * @Description: 仓库区域管理
 */
@RestController
@Api(value = "仓库区域管理", description = "仓库区域管理")
@RequestMapping("/warenhouse/area")
public class WarehouseAreaMgmtController extends AbstractController {


    @ApiOperation(value = "通过仓库编码查询", notes = "通过仓库编码查询")
    @GetMapping("/findByWarehouseCode")
    public RR findByWarehouseCode(String warehouseCode){
        return callData(()->ref(WarehouseAreaMgmtService.class).findByWarehouseCode(warehouseCode));
    }

}
